from flask import Flask,url_for

app = Flask(__name__)

@app.route('/')
def index():
    url = url_for('test_url')
    return f'Hello==={url}'

@app.route('/test/')
def test_url():
    return '测试请求上下文'




if __name__ == '__main__':
    app.run(debug=True)